package com.hd.assistant.dal.dao.query.ordermining;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import com.hd.assistant.dal.dao.query.BasePagerQuery;
import com.hd.assistant.dal.dataobject.ordermining.TcOrder;

public class TcOrderQuery extends BasePagerQuery{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	private Long tid;
	private Long userId;
	
	private String buyerNick;
	
	private String status;
	
	private Date payTimeStart;
	
	private Date payTimeEnd;
	
	private Date endTimeStart;
	
	private Date endTimeEnd;
	
	private Integer buyerRate;
	
	private Double profitStart;
	
	private Double profitEnd;
	
	private Integer isProfitCal;

	private List<TcOrder> tcOrders;
	
	private List<String> statuses;
	
	private List<Integer> profitCalStatus;
	
	private boolean noProfit;
	
	public boolean isNoProfit() {
		return noProfit;
	}

	public void setNoProfit(boolean noProfit) {
		this.noProfit = noProfit;
		if(noProfit){
			profitCalStatus = new ArrayList<Integer>();
			profitCalStatus.add(TcOrder.PROFIT_CAL_INIT);
			profitCalStatus.add(TcOrder.PROFIT_CAL_NO_COST);
		}
	}

	public List<Integer> getProfitCalStatus() {
		return profitCalStatus;
	}

	public void setProfitCalStatus(List<Integer> profitCalStatus) {
		this.profitCalStatus = profitCalStatus;
	}

	public List<String> getStatuses() {
		return statuses;
	}

	public void setStatuses(List<String> statuses) {
		this.statuses = statuses;
	}

	public List<TcOrder> getTcOrders() {
		return tcOrders;
	}

	public void setTcOrders(List<TcOrder> tcOrders) {
		this.tcOrders = tcOrders;
	}

	public Long getUserId() {
		return userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	public Long getTid() {
		return tid;
	}

	public void setTid(Long tid) {
		this.tid = tid;
	}

	public String getBuyerNick() {
		return buyerNick;
	}

	public void setBuyerNick(String buyerNick) {
		this.buyerNick = buyerNick;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public Date getPayTimeStart() {
		return payTimeStart;
	}

	public void setPayTimeStart(Date payTimeStart) {
		this.payTimeStart = payTimeStart;
	}

	public Date getPayTimeEnd() {
		return payTimeEnd;
	}

	public void setPayTimeEnd(Date payTimeEnd) {
		this.payTimeEnd = payTimeEnd;
	}

	public Date getEndTimeStart() {
		return endTimeStart;
	}

	public void setEndTimeStart(Date endTimeStart) {
		this.endTimeStart = endTimeStart;
	}

	public Date getEndTimeEnd() {
		return endTimeEnd;
	}

	public void setEndTimeEnd(Date endTimeEnd) {
		this.endTimeEnd = endTimeEnd;
	}

	public Integer getBuyerRate() {
		return buyerRate;
	}

	public void setBuyerRate(Integer buyerRate) {
		this.buyerRate = buyerRate;
	}

	public Double getProfitStart() {
		return profitStart;
	}

	public void setProfitStart(Double profitStart) {
		this.profitStart = profitStart;
	}

	public Double getProfitEnd() {
		return profitEnd;
	}

	public void setProfitEnd(Double profitEnd) {
		this.profitEnd = profitEnd;
	}

	public Integer getIsProfitCal() {
		return isProfitCal;
	}

	public void setIsProfitCal(Integer isProfitCal) {
		this.isProfitCal = isProfitCal;
	}
	
	

}
